<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>函数声明的注意点</title>
    <script>
        function func(){
            function innerFunc(){

            }
        }

        //不推荐使用
        /*if(true){
            function aa(){

            }
        }else{
            function bb(){

            }
        }*/
    </script>
</head>
<body>

</body>
</html>